package my.study.c.consul.consumer.app.configuration;

import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FeignConfiguration {

    /*
        使用该Bean后不能使用Spring mvc注解
     */
//    @Bean
//    public Contract feignContract() {
//        return new Contract.Default();
//    }

    @Bean
    public Logger.Level feignLoggerLevel() {
        return Logger.Level.FULL;
    }
}
